home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Net / Utilities / Seer family 2.0 / docs / unloved files / qpdc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-11-15  |  881 b   |  35 lines  |  [TEXT/KAHL]

  1. /*
  2.     pdc.h - pdl compiler .h interface file
  3. */
  4.  
  5. #define PDC_EOF_ch (-1)
  6. struct pdc_R {
  7.     long pdc_size;        /*number of characters left to read*/
  8.     char *pdc_nextch;    /*pointer to the next character in input stream*/
  9.     int pdc_cur_ch;    /*the current input character*/
  10.     int (*pdc_load_buf)(); /*function to load the next buffers worth of data*/
  11. };
  12.  
  13. typedef struct pdc_R pdc;
  14.  
  15. #define TOK_eof         (0)
  16. #define TOK_int         (1)
  17. #define TOK_left_paren    (2)
  18. #define TOK_right_paren    (3)
  19. #define TOK_tick         (4)
  20. #define TOK_symbol         (5)
  21.  
  22. struct symbol_R {
  23.     char *sy_txt;        /*pointer to c string of symbol text*/
  24. };
  25. typedef struct symbol_R symbol;
  26. #ifdef RUBBISH
  27. struct token_R {
  28.     int tok_kind;    /*token kind*/
  29.     int tok_radix;    /*radix for int/char constants*/
  30.     long tok_value;    /*value for int/char constants*/
  31.     symbol_pt tok_sym; /*symbol table entry for TOK_symbol*/
  32. };
  33. typedef struct token_R token;
  34. #endif
  35.